{include file='../../../PublicView/include.html'}
<script src="/assets/shopmodule/order.js"></script>
<div class="taeapp admin-table" cellpadding="0" cellspacing="0" border="0">
        <div class="taeapp admin-table-side  tips tips-small tips-notice tips-no-icon">
            <!--菜单部分-->
            <div class="taeapp admin-nav">
			{include file='../../../PublicView/shopleft.html'}
			</div>
            <!--菜单部分-->
        </div>
        <div class="taeapp admin-table-main">
            <!--内容部分-->
				<ul class="breadcrumb">
					<li><a href="/">互动到店</a> <span class="divider">/</span></li>
					<li>奖品管理 <span class="divider">/</span></li>
					<li class="active">{$title}</li>
				</ul>
		
			<!--内容部分-->
			<div class="button-group" style="margin: 9px 0;">
			  <a class="button" href="/?c=jifen&amp;m=shopadmin">积分配置</a>
			  <a class="button" href="/?c=jifen&a=user&m=shopadmin">兑换记录</a>
			  <a class="button" href="/?c=jifen&a=qiandao&m=shopadmin">签到记录</a>
			  <a class="button" href="/?c=jifen&a=jforders&m=shopadmin">订单换积分</a>
			</div>
			{include file='../../../PublicView/showmessage.html'}
			<div class="row">
			  <div id="tab">
					 <ul class="bui-tab nav-tabs">
					 <form class="pull-right" method="post" action="/?a=order&c=wins&m=shopadmin">
						<input type="text" name="usernick" value="{$search|default:""}" class="control-text search-query">
						<button type="submit" class="button-small">搜索</button>
					 </form>
					 <li class="bui-tab-item {if $ctp=="all"} bui-tab-item-selected{/if}" data-admin="{$admin}" data-tp="all"><span class="bui-tab-item-text">全部</span></li>
					 {foreach from=$tools key=key item=item}
					 {if $item.status}
					 <li class="bui-tab-item {if $ctp==$key} bui-tab-item-selected{/if}" data-admin="{$admin}" data-tp="{$key}"><span class="bui-tab-item-text">{$item.name}</span></li>
					 {/if}
					 {/foreach}
					 {if $admin!="wins"}
					 <!-- <li><button class="button button-small button-success addorder" data-ctp="{$ctp}">添加订单</button></li> -->
					 <!-- <li><button class="button button-small button-warning leadorder" data-ctp="{$ctp}">导入历史订单</button></li> -->
					 <li><button class="button button-small button-warning manual" data-ctp="{$ctp}">手动抽奖</button></li>
					 
					 {/if}
					 <!-- <li><button class="button button-small button-danger"><i class="icon-white icon-trash"></i>删除内容</button></li>
					 <li><button class="button button-small button-inverse">修改内容</button></li> --></ul>
			  </div>
			  <div class="form-horizontal">
			  <table cellspacing="0" class="table table-bordered" style="border-top:none">
          <tbody>
            <tr>
              <th width="15"></th>
              <th>买家</th>
              <th width="60">付款</th>
              <th>订单号</th>
              <th>兑换积分</th>
              <th width="100">时间</th>
              <th width="60">操作</th>
            </tr>
		  {foreach key=key item=item from=$data}
            <tr class="re{$ctp}{$item.id}">
              <td><input type="checkbox" data-gid="{$item.id}" class="js-select"></td>
			  <td>
			  {$item.buyer_nick}
			  </td>
              <td>{$item.payment}</td>
			  <td><a href="http://trade.taobao.com/trade/detail/trade_item_detail.htm?bizOrderId={$item.oid}" target="_blank">{$item.oid}</a></td>
			  <td>{$item.seeds}</td>
			  <td>{$item.pub_time}</td>
			  <td>
				  <span class=" curpoint x-icon x-icon-small x-icon-error js-jfodel" style="cursor:pointer" data-oid="{$item.id}">×</span>
			  </td>
            </tr>
		{/foreach}
          </tbody>
        </table>
		<div>
		  {if $admin!="wins"}
          <ul class="toolbar pull-left">
            <li><label class="checkbox"><input type="checkbox" class="js-checkall"><a href="###" class="js-checkall">全选</a></label></li>
            <!--  <li><button class="button button-danger">审核通过</button></li>
            <li><button class="button button-inverse">审核不通过</button></li> -->
          </ul>
		  {/if}
		  <div class="pagination pull-right" data-totalpg="{$totalpg}" data-curpg="{$curpg}" data-action="{$current}">
			{$page}
          </div>
        </div>
			  </div>
			</div>			
			<input type="hidden" class="type" value="{$type|default:0}" />
        <!--内容部分-->
        </div>
</div>